;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        planA: {
            "name": "出行无忧意外险",
            "company": "众安保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "train_death": "200000",
            "airplane_death": "",
            "ship_death": "200000",
            "passenger_death": "100000",
            "no_motor_vehicle": "50000",
            "private_death": "",
            "price": "32.00"
        },
        planB: {
            "name": "出行无忧意外险",
            "company": "众安保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "train_death": "300000",
            "airplane_death": "",
            "ship_death": "300000",
            "passenger_death": "200000",
            "no_motor_vehicle": "100000",
            "private_death": "",
            "price": "60.00"
        },
        planC: {
            "name": "出行无忧意外险",
            "company": "众安保险",
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "train_death": "500000",
            "airplane_death": "1000000",
            "ship_death": "300000",
            "passenger_death": "300000",
            "no_motor_vehicle": "150000",
            "private_death": "100000",
            "price": "121.00"
        }
    }
    for( k in plan){
        data = plan[k];
        mysql.insertData( data );
    }
    mysql.close();
}


